/**********************************************
这是代码自动生成的，如果重新生成，所做的改动将会丢失
系统:LogisticsCrawler.Core
模块:LogisticsCrawler.Core
LogisticsCrawler.Core 版权所有
Last Create Time:2010/4/1 13:50:20
***********************************************/

using System;

namespace LogisticsCrawler.Core
{
    /// <summary>
    ///[CrawlerCompany]业务实体类
    ///对应表名:CrawlerCompany
    /// </summary>
    [Serializable]
    public class CrawlerCompany
    {      
        #region Private 成员
        private string id= Guid.NewGuid().ToString().Replace("-",""); 
        private string name=String.Empty; 
        private string phone=String.Empty; 
        private string address=String.Empty; 
        private string website=String.Empty; 
        private string intro=String.Empty; 
        private string service=String.Empty; 
        private string fromurl=String.Empty; 
        private DateTime regdate=DateTime.Now;   
        #endregion
  
        #region Public 成员
   
        /// <summary>
        /// 属性名称：Id
        /// 属性描述：
        /// 字段信息：[Id],nvarchar
        /// </summary>
        public string Id
        {
            get { return id; }
            set
            {
   
                if(value==null)return;
                if( value.ToString().Length > 32)
                throw new ArgumentOutOfRangeException("Invalid value for Id", value, value.ToString());
                if (id as object == null || !id.Equals(value))
                {
                    id = value;
                }
             }
        }

        /// <summary>
        /// 主类型：物流、航空
        /// </summary>
        public string MainType { get; set; }
  
        /// <summary>
        /// 属性名称：Name
        /// 属性描述：
        /// 字段信息：[Name],nvarchar
        /// </summary>
        public string Name
        {
            get { return name; }
            set
            {
   
                if(value==null)return;
                if( value.ToString().Length > 200)
                throw new ArgumentOutOfRangeException("Invalid value for Name", value, value.ToString());
                if (name as object == null || !name.Equals(value))
                {
                    name = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Phone
        /// 属性描述：
        /// 字段信息：[Phone],nvarchar
        /// </summary>
        public string Phone
        {
            get { return phone; }
            set
            {
   
                if(value==null)return;
                if( value.ToString().Length > 200)
                throw new ArgumentOutOfRangeException("Invalid value for Phone", value, value.ToString());
                if (phone as object == null || !phone.Equals(value))
                {
                    phone = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Address
        /// 属性描述：
        /// 字段信息：[Address],nvarchar
        /// </summary>
        public string Address
        {
            get { return address; }
            set
            {
   
                if(value==null)return;
                if( value.ToString().Length > 500)
                throw new ArgumentOutOfRangeException("Invalid value for Address", value, value.ToString());
                if (address as object == null || !address.Equals(value))
                {
                    address = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Website
        /// 属性描述：
        /// 字段信息：[Website],nvarchar
        /// </summary>
        public string Website
        {
            get { return website; }
            set
            {
   
                if(value==null)return;
                if( value.ToString().Length > 500)
                throw new ArgumentOutOfRangeException("Invalid value for Website", value, value.ToString());
                if (website as object == null || !website.Equals(value))
                {
                    website = value;
                }
             }
        }

        /// <summary>
        /// 企业分类
        /// </summary>
        public string Category
        {
            get;
            set;
        }
  
        /// <summary>
        /// 属性名称：Intro
        /// 属性描述：
        /// 字段信息：[Intro],ntext
        /// </summary>
        public string Intro
        {
            get { return intro; }
            set
            {
   
                if(value==null)return;
                if( value.ToString().Length > 1073741823)
                throw new ArgumentOutOfRangeException("Invalid value for Intro", value, value.ToString());
                if (intro as object == null || !intro.Equals(value))
                {
                    intro = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Service
        /// 属性描述：
        /// 字段信息：[Service],ntext
        /// </summary>
        public string Service
        {
            get { return service; }
            set
            {
   
                if(value==null)return;
                if( value.ToString().Length > 1073741823)
                throw new ArgumentOutOfRangeException("Invalid value for Service", value, value.ToString());
                if (service as object == null || !service.Equals(value))
                {
                    service = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Fromurl
        /// 属性描述：
        /// 字段信息：[Fromurl],nvarchar
        /// </summary>
        public string Fromurl
        {
            get { return fromurl; }
            set
            {
   
                if(value==null)return;
                if( value.ToString().Length > 200)
                throw new ArgumentOutOfRangeException("Invalid value for Fromurl", value, value.ToString());
                if (fromurl as object == null || !fromurl.Equals(value))
                {
                    fromurl = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：RegDate
        /// 属性描述：
        /// 字段信息：[RegDate],datetime
        /// </summary>
        public DateTime RegDate
        {
            get { return regdate; }
            set
            {
   
                if (regdate as object == null || !regdate.Equals(value))
                {
                    regdate = value;
                }
             }
        }
  
        #endregion 
    }
}
